<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.Chart.UI.DataLabelPropertiesResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI">
    <DataTemplate DataType="{x:Type chart:DataLabels}">
        <TabControl TabStripPlacement ="Left"   chartui:ChartElement.ViewModel="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}">
            <TabItem Header="{x:Static Internals:UIStringTable.LabelOptions}">
                <GroupBox Header="{x:Static Internals:UIStringTable.LabelPosition}">
                    <ListBox
                             ItemsSource="{Binding Source={x:Type chart:DataLabelPosition}, Converter={x:Static Internals:ChartConverters.EnumEnumerator}}"
                            SelectedItem="{Binding Position}" Style="{x:Static chartui:EnumResources.EnumListBoxStyle}">
                    </ListBox>

                </GroupBox>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.Fill}">
                <!--<ContentControl Content="{Binding}" ContentTemplate="{x:Static chartui:ShapedPropertiesResources.FillPropertiesTemplate}"/> -->
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).FillFormatter, RelativeSource={RelativeSource Self}}" />

            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.LineColor}">
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineFillFormatter, RelativeSource={RelativeSource Self}}" />

                <!--<ContentControl Content="{Binding}" ContentTemplate="{x:Static chartui:ShapedPropertiesResources.LineFillPropertiesTemplate}"/> -->
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.LineStyle}">
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineStyleFormatter, RelativeSource={RelativeSource Self}}" />
            </TabItem>
        </TabControl>
    </DataTemplate>
    
</ResourceDictionary>